﻿@inherits System.Web.Mvc.WebViewPage

@{
	ViewBag.Title = "Change Password";
}


@section HeadArea {
	<link rel="Stylesheet" type="text/css" href="@Url.Action("OpenIdSelector", "Resource")" />
	<link rel="Stylesheet" type="text/css" href="@Url.Action("OpenIdAjaxTextBox", "Resource")" />
}

<h2>Change Password</h2>
<p>
	Use the form below to change your password. 
</p>
<p>
	New passwords are required to be a minimum of @ViewBag.PasswordLength characters in length.
</p>

@using (Html.BeginForm()) {
	@Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.")
	<div>
		<fieldset>
			<legend>Account Information</legend>
			<p>
				<label for="currentPassword">Current password:</label>
				@Html.Password("currentPassword")
				@Html.ValidationMessage("currentPassword") 
			</p>
			<p>
				<label for="newPassword">New password:</label>
				@Html.Password("newPassword")
				@Html.ValidationMessage("newPassword")
			</p>
			<p>
				<label for="confirmPassword">Confirm new password:</label>
				@Html.Password("confirmPassword")
				@Html.ValidationMessage("confirmPassword")
			</p>
			<p>
				<input type="submit" value="Change Password" />
			</p>
		</fieldset>
	</div>
}
